#include "video-graphics.h"
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include "sprite.h"
#include "pixmap.h"
#include <time.h>
#include <string.h>
#include "kbc.h"
#include <time.h>
#include <stdlib.h>

#define TRUE 1
#define FALSE 0

#define MAX_SPEED 1    /**< each sprite maximum speed in pixels/frame */
#define BOTTOM_HIT 1   /**< collision with bottom block          */
#define RIGHT_HIT  2   /**< collision with right block           */
#define LEFT_HIT   3   /**< collision with left block            */
#define UPPER_HIT  4   /**< collision with upper block           */
#define CRASH      6   /**< collision with missiles or the enemy */

#define TECLA_CIMA 0x48
#define TECLA_BAIXO 0x50
#define TECLA_DIREITA 0x4d
#define TECLA_ESQUERDA 0x4b
#define TECLA_ESCAPE 0x01

#define NO_MOVE 0
#define MOV_V_BAIXO 1
#define MOV_H_DIREITA 2
#define MOV_H_ESQUERDA 3
#define MOV_V_CIMA 4


void jogo(int argc, char* argv[]);
int testa_direccao_anterior(Sprite * pacman_base,uchar anim, int ultima_tecla,int direc,int dir_tec_ant);
int tecla_pressionada(uchar c);
Sprite * actualiza_posicao(Sprite * fig,int dir,char* anim);
void inicializaSprites();
void cria_bolachas();
void posiciona_bolachas();
int inicializaResolucao(int argc,char* argv[]);
